function Person(name, surname) {
	this.name = name;
	this.surname = surname;

}

Person.prototype.getFullName = function() {
	return this.name + " " + this.surname;
}

function Developer(name, surname, knownLanguage) {
	Person.apply(this, arguments);
	this.knownLanguage =  knownLanguage;
}

Developer.prototype = Object.create(Person.prototype);
Developer.prototype.constructor = Developer;
Developer.prototype.getFullName = function() {
	return "Dew. " + Person.prototype.getFullName.call(this);
};


var johnSmith = new Person("Jan", "Kowalski");
var marioRossi = new Developer("Mario", "Rossi", "JavaScript");

console.log(johnSmith.getFullName());		// wynik: "Jan Kowalski"
console.log(marioRossi.getFullName());		// wynik: "Dew. Mario Rossi"

